package cn.sylinx.horm.resource.parse;

import cn.sylinx.horm.resource.lexer.FUNCToken;

/**
 * FUNC 描述
 * 
 * @author johnhan
 *
 */
public class FUNCNode implements ParsedNode {

    private final FUNCToken funcToken;

    public FUNCNode(FUNCToken funcToken) {
        this.funcToken = funcToken;
    }

    public FUNCToken getFuncToken() {
        return funcToken;
    }

    @Override
    public int getStartIndex() {
        return funcToken.getStartIndex();
    }

    @Override
    public int getEndIndex() {
        return funcToken.getEndIndex();
    }

    @Override
    public String toString() {
        return "FUNCNode [funcToken=" + funcToken + "]";
    }

}
